<import src="../detail/detail" />
<template is="{{template}}" data="{{my_toast_tip: my_toast_tip}}" />
<view class="lists">
    <view class="list">
        <!-- <image src="{{imageUrl}}/yu_e.png"></image> -->
        <image src="../../image/yu_e.png"></image>
        <view class="type">
            <view class="balance">余额免密支付</view>
            <view class="des">Free secret payment</view>
        </view>
        <view class="right">
            <switch data-type='{{balanceType}}' checked="{{balanceStatus}}" bindchange="balanceSwitchChange" />
            <view class="status" bindtap='todes'>
                <text>{{ balanceStatus ? "已开通" : "未开通" }}</text>
                <image wx:if="{{!balanceStatus}}" src="{{imageUrl}}/icon_next.png"></image>
            </view>
        </view>
    </view>
    <view class="list">
        <image src="{{imageUrl}}/wechat_freepay.png"></image>
        <view class="type">
            <view class="wechat">微信免密支付</view>
            <view class="des">WeChat free payment</view>
        </view>
        <view class="right">
            <switch data-type='wechat' checked="{{wechatStatus}}" bindchange="switchChange" />
            <view class="status" bindtap='todes'>
                <text>{{ wechatStatus ? "已开通" : "未开通" }}</text>
                <image wx:if="{{!wechatStatus}}" src="{{imageUrl}}/icon_next.png"></image>
            </view>
        </view>
    </view>
    
    <view class="toDes">
        <navigator url="/pages/freePaydes/freePaydes">免密支付说明</navigator>
        <image src="{{imageUrl}}/icon_explan.png"></image>
    </view>
</view>
 <!--密码--> 
 <view id='passWord_view' wx:if="{{isShow}}">
        <view id='pw'>
            <image class='clo_style' bindtap="closeView" src="../../image/icon_clo.png"></image>
            <!-- <input type="number" bindblur='hideView'  maxlength="6" placeholder="这是一个可以自动聚焦的input" focus='{{input_type}}' bindinput="getPassWord"/> -->
            <label class="msg" >请输入余额支付密码</label>
            <label class="point" >
                <!-- <li wx:for="{{styleList}}" wx:key='{{index}}'><span class="{{item}}"></span></li> -->
                <input type="password"   maxlength="6" focus='{{input_type}}' bindinput="getPassWord"/>
            </label>
        </view>
</view> 
